<template>
	<view>
		<view class="text">
			<!-- 价格 -->
			<view class="price">
				<view class="price1">￥5</view>
				<view class="price2">满20元可用</view>
			</view>
			<!-- 中间的竖线 -->
			<view class="line"></view>
			<!-- 使用期限 -->
			<view class="timeBox">
				<view class="time1">
					通用
					<button class="btn">使用</button>
					
				</view>     
				
				<view class="time2">
					有效期至2021-10-01 剩2000份
				</view>
			</view>
			
		</view>
	</view>
</template>
    
<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.text {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 680rpx;
		height: 180rpx;
		border: 1rpx solid #c5c4c8;
		border-radius: 20rpx;
		margin: 20rpx auto;
		box-shadow: 0 0 10px rgba(176, 176, 176, 0.5) ;
		line-height: 60rpx;
	}
	.line {
		height: 160rpx;
		width: 0;
		border-left:1rpx solid #c5c4c8;
	}
	.price {
		padding-right: 10rpx;
		text-align: center;
		
	}
	
	.price1 {
		
		font-size: 50rpx;
		
		/* position: relative; */
	}
	
	.timeBox {
		margin-left: 20rpx; 
	}
	.time1 {
		
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.time2 {
		font-size: 28rpx;
	}
	
	.btn {
		width: 136rpx; 
		height: 44rpx;
		font-size: 24rpx;
		line-height: 44rpx;
		margin-left: 200rpx;
		background-color: #FEA443;
		color: white;
		border-radius: 22rpx;
		border: 0;
		
	}
</style>
